package com.dms.modules.community.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dms.modules.community.entity.CommunityCategory;

public interface CommunityCategoryService extends IService<CommunityCategory> {
    
    /**
     * 创建分类
     */
    Long createCategory(String name, String description, String icon, Integer sort);
    
    /**
     * 更新分类
     */
    boolean updateCategory(Long id, String name, String description, String icon, Integer sort, Integer status);
    
    /**
     * 获取分类列表
     */
    IPage<CommunityCategory> getCategoryList(Page<CommunityCategory> page);
} 